﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace DukeySoundHelper
{
    public partial class TestUpdateFrm : Form
    {
        public TestUpdateFrm()
        {
            InitializeComponent();
        }

        private void btnAuto_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process.Start(System.AppDomain.CurrentDomain.BaseDirectory + @"\Updater.exe");
        }

        private void button2_Click(object sender, EventArgs e)//手动升级,传参数
        {
            string args = "dodiv" + "|" + "dodiv" + "|" + "http://www.zhanzhebian.com/update.xml";
            System.Diagnostics.Process pro = new System.Diagnostics.Process();
            pro.StartInfo.FileName = System.AppDomain.CurrentDomain.BaseDirectory + @"\Updater.exe ";
            pro.StartInfo.UseShellExecute = false;
            pro.StartInfo.Arguments = args;
            pro.Start();
            pro.Close();
        }
    }
}
